package com.lagou.module4hw.hw4;

import java.io.Serializable;

/**
 * 用户类
 */
public class User implements Serializable {

    //序列化版本号
    public final long serialVersionUID = 2818375828146090158L;

    //用户名
    private String name;
    //密码
    private String password;

    //构造方法
    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
